<?php

//进行数据库层次设计

include_once("configs/database.inc.php");		//引入数据库配置
include_once("libraries/Mysql.class.php");		//引入mysql类库

//function __autoload($class_name){
//	require_once("libraries/".$class_name.".class.php");	
//}

$D = new Mysql($dbhost,$dbuser,$dbpassword,$dbname);

//database 
if($D->connect()){
	echo "成功！";	
}else{
	echo "失败！";
}


$smarty->assign('title','真实的主页');
$smarty->assign('test_str','测试的字符');

$smarty->display('test.tpl');

?>